using UnityEngine;

public class Main : MonoBehaviour
{
    // 在Inspector中指定预制体
    public GameObject loginCanvasPrefab;

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        // 检查是否已在Inspector中设置预制体
        if (loginCanvasPrefab == null)
        {
            Debug.LogError("请在Inspector中指定LoginCanvas预制体");
            return;
        }

        // 实例化预制体
        Instantiate(loginCanvasPrefab);
        Debug.Log("LoginCanvas预制体已加载");
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
